@import url("./font.css");
html {
  /* color: #333333; */
  /* background: #fff; */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td,
hr,
button,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  margin: 0;
  padding: 0;
}
body,
button,
input,
select,
textarea {
  font: 12px/1.5, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

::selection {
  background: #e83015;
  color: #fff;
  text-shadow: none;
}

.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100001;
}

body {
  /* font-family: "苹方-简-中规体", serif; */
  background-image: url(../images/texture.png);
  padding: 0;
  text-align: center;
  margin: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* 整个背景展示区域 */
.chinese {
}

.color-info {
  width: 100vw;
  height: 60vh;
}

.left{
  text-align: left;
}

.right{
  text-align: right;
}

.center{
  text-align: center;
}

.color-number{
  position: absolute;
  bottom: 20vh;
  right: 4vh;
}

.c-id,
.c-pinyin,
.c-name,
.c-chex,
.c-crgb,
.c-ccmyk {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei,Arial,sans-serif;
  font-size: 2rem;
  letter-spacing: 1px;
  transition-property: color;
  transition-duration: 0.1s;
  padding-left: 4vw;
  padding-right: 4vw;
  cursor: pointer;
}

.c-id{
  margin-bottom: 2.5rem;
}

.c-pinyin {
  text-transform: capitalize;
  margin-bottom: .5rem;
}

.c-name {
  font-display: swap;
  font-family: "造字工房刻宋常规体", "SF-Pro-SC",Courier, monospace;
  font-size: 4em;
  /* -webkit-writing-mode: vertical-rl; */
  margin-bottom: 20vh;
  border-left: 5px solid currentColor;
}

.c-chex {
  font-size: 2em;
}

@keyframes turnZ {
  0% {
    transform: rotateZ(0deg);
  }

  100% {
    transform: rotateZ(360deg);
  }
}

/* 点击改变颜色的灯 */
.changeColor {
  cursor: pointer;
  border: none;
  outline: none;
  animation-name: turnZ;
  animation-duration: 15s;
  animation-iteration-count: infinite;
  width: 100px;
  height: 100px;
  background: url("../images/logo.webp") no-repeat;
  background-size: 100%;
  color: currentColor;
  text-decoration: none;
  font-size: 200%;
  background-position: center;
}

.chinese-colors-list {
  animation-name: turn;
  animation-duration: 5s;
  animation-iteration-count: infinite;
}

.back-list {
  width: 100px;
  height: 100px;
  color: currentColor;
  text-decoration: none;
  display: block;
  position: absolute;
  bottom: 10vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 200%;
  background: url(../images/back.webp) no-repeat;
  background-size: 100px;
  background-position: center;
  outline: none;
}

/* 小于 320px 时 */
@media only screen and (max-width: 320px) {
  .chinese {
  }

  .changeColor {
  }

  .c-pinyin {
    writing-mode: tb-lr;
    font-size: 1rem;
  }

  .c-name {
    font-size: 1.5rem;
  }

  .c-chex {
    font-size: 1rem;
  }

  .back-list {
  }
}

/* 320px — 480px：移动设备 */
@media screen and (min-width: 320px) and (max-width: 480px) {
  /* 代码 */
  .chinese {
  }

  .changeColor {
  }

  .c-pinyin {
  }

  .c-name {
  }

  .c-chex {
  }

  .back-list {
  }
}

/* 481px — 768px：iPad，平板电脑 */
@media screen and (min-width: 481px) and (max-width: 768px) {
  /* 代码 */
  .chinese {
  }

  .changeColor {
  }

  .c-pinyin {
  }

  .c-name {
  }

  .c-chex {
  }

  .back-list {
  }
}

/* 769px — 1024px：小屏幕，笔记本电脑 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  /* 代码 */
  .chinese {
  }

  .changeColor {
  }

  .c-pinyin {
  }

  .c-name {
  }

  .c-chex {
  }

  .back-list {
  }
}

/* 1025px — 1200px：台式机，大屏幕 */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
  /* 代码 */
  .chinese {
  }

  .changeColor {
  }

  .c-pinyin {
  }

  .c-name {
  }

  .c-chex {
  }

  .back-list {
  }
}

/* 1201px 及以上：超大屏幕电视 */
@media screen and (min-width: 1201px) {
  /* 代码 */
  .chinese {
  }

  .changeColor {
  }

  .c-pinyin {
  }

  .c-name {
  }

  .c-chex {
  }

  .back-list {
  }
}
